
#nfs共享文件夹的根文件系统的目录
ROOTFS_DIR = /nfs/rootfs
#linux内核目录
KERNEL_DIR = /home/chen/product/linux-3.14

ifeq ($(KERNELRELEASE), )

CUR_DIR = $(shell pwd)


all :
	make -C $(KERNEL_DIR)  M=$(CUR_DIR) modules

clean:
	make -C $(KERNEL_DIR)  M=$(CUR_DIR) clean

install:
	cp -raf *.ko  $(ROOTFS_DIR)/drv_module


else

obj-m += hello.o
obj-m += math.o

endif
